<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>for 渲染字符串</title>
</head>
<body>
<div id="app">
    <div v-for="char in message">{{ char }}</div>
    <br>
    <div v-for="(char, index) in message">{{ index }} {{ char }}</div>
</div>

<script type="module">
    import {createApp, reactive} from "../../../../../js/vue.esm-browser.js";

    const app = createApp({
        setup() {
            let message = reactive("Hello, World!")

            return {
                message,
            }
        }
    })

    app.mount("#app")
</script>
</body>
</html>